<template>
  <div class="open-camera">
    <button type="button" @click="openCamera">打开摄像机</button>
    <button type="button" @click="closeCamera">关闭摄像机</button>
    <video class="video" ref="videoEl" />
  </div>
</template>

<script>
import openCamera from "./open-camera.js";
export default openCamera
</script>

<style  scoped>
  @import "./open-camera.css";
</style>
    